package com.gec.wiki.service;

import com.gec.wiki.pojo.Doc;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.wiki.pojo.req.DocQueryReq;
import com.gec.wiki.pojo.resp.DocQueryResp;
import com.gec.wiki.pojo.resp.PageResp;
import com.gec.wiki.service.impl.BusinessException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 */
public interface DocService extends IService<Doc> {
    PageResp<DocQueryResp> getDocListByPage(DocQueryReq req);

    List<DocQueryResp> allList(DocQueryReq req);

    int increaseViewCount(int id);

    int increaseVoteCount(int id) throws BusinessException;

    int updateEbookInfo();
}
